import request from '@/utils/request'

// 查询物资报废和回收中间表列表
export function listBaofeimingxi(query) {
  return request({
    url: '/jiuzai/baofeimingxi/list',
    method: 'get',
    params: query
  })
}

// 查询物资报废和回收中间表详细
export function getBaofeimingxi(baomingId) {
  return request({
    url: '/jiuzai/baofeimingxi/' + baomingId,
    method: 'get'
  })
}

// 新增物资报废和回收中间表
export function addBaofeimingxi(data) {
  return request({
    url: '/jiuzai/baofeimingxi',
    method: 'post',
    data: data
  })
}

// 修改物资报废和回收中间表
export function updateBaofeimingxi(data) {
  return request({
    url: '/jiuzai/baofeimingxi',
    method: 'put',
    data: data
  })
}

// 删除物资报废和回收中间表
export function delBaofeimingxi(baomingId) {
  return request({
    url: '/jiuzai/baofeimingxi/' + baomingId,
    method: 'delete'
  })
}
